/*
 * Class: SubsidiaryController
 * Created by: Mary Joy Pascual
 * Date Created: 06/16/2014
 * Company: Netsuite
*/
package com.netsuite.controller;

import java.util.List;

import com.netsuite.dao.SubsidiaryDAO;
import com.netsuite.helper.ErrorHelper;
import com.netsuite.logger.LoggerImp;
import com.netsuite.pojo.SubsidiaryPOJO;

public class SubsidiaryController {
	
	private static String CLASS_NAME = SubsidiaryController.class.getName();
	
	public List<SubsidiaryPOJO> getSubsidiaryList() throws ErrorHelper {
		
		LoggerImp.startLog(CLASS_NAME, "getSubsidiaryList()");
		SubsidiaryDAO subDAO = new SubsidiaryDAO();
		LoggerImp.endLog(CLASS_NAME, "getSubsidiaryList()");
		
		return subDAO.getSubsidiaryList();
	}

}
